﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTGroup_ZheJiang.Models;
using DTGroup_ZheJiang.IDAL;
using DTGroup_ZheJiang.OracleDataAccess;

namespace DTGroup_ZheJiang.Business
{
    public class SenseStatisticsBO
    {
        public DataTable GetSenseStatisticsByPage(string tableName, int PageIndex, int PageSize, string sqlCondition, out int TotalCount)
        {
            ISenseStatistics dal =new SenseStatisticsDao();
            return dal.GetSenseStatisticsByPage(tableName, PageIndex, PageSize, sqlCondition, out TotalCount);
        }

        public List<SenseStatistics> GetSenseStatisticsByWhere(string tableName, string sqlCondition)
        {
            ISenseStatistics dal = new SenseStatisticsDao();
            return dal.GetSenseStatisticsByWhere(tableName, sqlCondition);
        }
    }
}
